import ReactDOM from "react-dom";
import App from "./App.tsx";
// import 'lib-flexible';

function setRemUnit() {
	//将页面的十分之一作为1rem。
	const rem = document.body.clientWidth / 10;
	document.querySelector("html")!.style.fontSize = rem + "px";
}

window.addEventListener("resize", setRemUnit);
window.addEventListener("load", setRemUnit);

setRemUnit();

ReactDOM.render(<App />, document.getElementById("root"));
